<nav>
      <?php include_partial('menu');?>     
</nav>
<article>
    <h1 id="titulobeca">BECAS DISPONIBLES</h1>


<table class="table1">
  <thead>
    <tr>            
      <th>Logo</th>
      <th>Nombre</th>      
      <th>Plazo</th>
      <th>Fecha inicio</th>
      <th>Fecha fin</th>
      <th>Universidad que ofrece</th>

    </tr>
  </thead>  
  <tbody>
    <?php foreach ($becas->getResults() as $beca):?>   
    <?php //foreach ($becas->getActiveBecas(sfConfig::get('app_max_becas_on_homepage')) as $i => $beca): ?>
    <tr>      
        <td><img id="img_logo" src="/uploads/logos/<?php echo $beca->getLogo() ?>" alt="<?php echo $beca->getId() ?> logo" /></td>
      <td><a href="<?php echo url_for('becas_aplicables/show?id='.$beca->getId()) ?>"><?php echo $beca->getNombre() ?></td>      
      <td><?php echo $beca->getPlazo() ?></td>
      <td><?php echo $beca->getFechaInicio() ?></td>
      <td><?php echo $beca->getFechaFin() ?></td>
      <td><?php echo $beca->getUniversidad()->getNombre()?></td>

    </tr>
    </form>
    <?php endforeach; ?>
  </tbody>
  <tfoot>
  <tr>            
   <td><?php include_partial('paginacion', array('becas'=> $becas)) ?></td>   
   <td></td>
   <td></td>
   <td></td>
   <td></td>   
   <td></td>   
  
  </tr>  
  </tfoot>
  </table>

</article>